package com.lucher.mes.dao;

import java.util.List;

import com.lucher.mes.po.Toolplate;
import com.lucher.mes.po.Toolplate;
import org.apache.ibatis.annotations.Param;

public interface ToolplateMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Toolplate record);

    int insertSelective(Toolplate record);

    Toolplate selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Toolplate record);

    int updateByPrimaryKey(Toolplate record);
    
    //自定义接口
    List<Toolplate> findByList(Toolplate record);
    List<Toolplate> findByListForPage(Toolplate record);
    int findByCount(Toolplate record);
	Toolplate findByToolplatecode(String toolplatecode);
	Integer findTotalOutnum(Toolplate record);
	Toolplate findByToolcode(String toolcode);
	Toolplate findByToolname(String toolname);

	//根据工具代码修改存放的工具信息
    void updateToolInfoByCode(@Param("toolCode")String toolCode,
                              @Param("toolName")String toolName,
                              @Param("toolType")String toolType
                              );


}